home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 February / february_2000.iso / site building / GoLive 4.0 Tryout / data1.cab / Apps / Modules / JScripts / Actions / Getters / Get Floating Box Position.action next >
Encoding:
Text File  |  1999-08-05  |  2.9 KB  |  78 lines

  1. <html>
  2.  
  3.     <head>
  4.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  5.         <meta name="generator" content="Adobe GoLive 4">
  6.         <title>Get Layer Position Action</title>
  7.     </head>
  8.  
  9.     <body bgcolor="white">
  10.         <center>
  11.             <font size="6">Get Layer Position Action</font><font>
  12.             <hr>
  13.             </font></center>
  14.         <p>
  15.         <csactionclass name="Get Layer Pos" function="CSGetLayerPos" nsversion="4" ieversion="4"> </p>
  16.         <p>
  17.         <csactionparam name="layer" type="GLActionLayerParam" var="YES"> </p>
  18.         <p></csactionclass>
  19.          </p>
  20.         <p>
  21.         <hr>
  22.         </p>
  23.         <p>IE Functions Script
  24.         <script language="JavaScript1.2" src="../../GlobalScripts/IE.scpt" cyberversion="N1.2"></script>
  25.         </p>
  26.         <p>StylePos Functions Script
  27.         <script language="JavaScript1.2" src="../../GlobalScripts/StylePos.scpt" cyberversion="N1.2"></script>
  28.         </p>
  29.         <p>Main Script
  30.         <script language="JavaScript1.2" cyberversion="N1.2"><!--
  31. function CSGetLayerPos(action) { 
  32.     var layer = action[1];
  33.     var x        = CSGetStylePos(layer, 0);
  34.     var y        = CSGetStylePos(layer, 1);
  35.     return new Array(x, y);
  36. }
  37. // -->
  38.         </script>
  39.         </p>
  40.         <p>
  41.         <hr>
  42.         </p>
  43.         <p>
  44.         <table cool width="253" height="46" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
  45.             <tr height="1" cntrlrow>
  46.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  47.                 <td width="10" height="1"><spacer type="block" width="10" height="1"></td>
  48.                 <td width="80" height="1"><spacer type="block" width="80" height="1"></td>
  49.                 <td width="160" height="1"><spacer type="block" width="160" height="1"></td>
  50.             </tr>
  51.             <tr height="10">
  52.                 <td width="1" height="10"><spacer type="block" width="1" height="10"></td>
  53.                 <td width="10" height="10"><spacer type="block" width="10" height="10"></td>
  54.                 <td width="80" height="10"><spacer type="block" width="80" height="10"></td>
  55.                 <td width="160" height="10"><spacer type="block" width="160" height="10"></td>
  56.             </tr>
  57.             <tr height="3">
  58.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  59.                 <td width="10" height="3"><spacer type="block" width="10" height="3"></td>
  60.                 <td width="80" height="3"><spacer type="block" width="80" height="3"></td>
  61.                 <td width="160" height="33" colspan="1" rowspan="2" valign="top" align="left" xpos="90">
  62.                     <csactioncntrl name="layer" x="90" y="10" width="140" height="18" alignx="scale" aligny="top">
  63.                 </td>
  64.             </tr>
  65.             <tr height="30">
  66.                 <td width="1" height="30"><spacer type="block" width="1" height="30"></td>
  67.                 <td width="10" height="30"><spacer type="block" width="10" height="30"></td>
  68.                 <td width="80" height="30" colspan="1" rowspan="1" valign="top" align="left" xpos="10">
  69.                     <csactioncntrl type="StaticText" value="Floating Box" x="10" y="13" width="77" height="16" alignx="left" aligny="top">
  70.                 </td>
  71.             </tr>
  72.         </table>
  73.         </p>
  74.         <p> 
  75.     </body>
  76.  
  77. </html>
  78.